package org.secangkirkopipanas.gxtcore.domain.dto;

import net.sf.hibernate4gwt.pojo.java5.LazyPojo;

import org.secangkirkopipanas.gxtcore.domain.ISystemApplication;

public class SystemApplicationDTO extends LazyPojo implements
		ISystemApplication {

	private static final long serialVersionUID = 1L;

	public static final long SYSTEM_APP_ID = 1L;

	private long id;
	private String name;
	private String commandName;

	public SystemApplicationDTO() {
	}

	public SystemApplicationDTO(long id, String name) {
		this.id = id;
		this.name = name;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCommandName() {
		return commandName;
	}

	public void setCommandName(String commandName) {
		this.commandName = commandName;
	}

	public boolean isTheSystem() {
		return (id == SYSTEM_APP_ID);
	}

}
